package com.lianzai.car.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.lianzai.car.dao.CarInfoDao;
import com.lianzai.car.domain.CarInfoDO;
import com.lianzai.car.service.CarInfoService;



@Service
public class CarInfoServiceImpl implements CarInfoService {
	@Autowired
	private CarInfoDao carInfoDao;
	
	@Override
	public CarInfoDO get(Integer id){
		return carInfoDao.get(id);
	}
	
	@Override
	public List<CarInfoDO> list(Map<String, Object> map){
		return carInfoDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return carInfoDao.count(map);
	}
	
	@Override
	public int save(CarInfoDO carInfo){
		return carInfoDao.save(carInfo);
	}
	
	@Override
	public int update(CarInfoDO carInfo){
		return carInfoDao.update(carInfo);
	}
	
	@Override
	public int remove(Integer id){
		return carInfoDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return carInfoDao.batchRemove(ids);
	}
	
}
